package cn.edu.suda.catalina.dataupdate.controller;

import cn.edu.suda.catalina.dataupdate.entity.SystemRole;
import cn.edu.suda.catalina.dataupdate.service.SystemRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 */
@RestController
public class SystemRoleController {
    @Autowired
    private SystemRoleService service;

    @PostMapping("/addRole")
    public SystemRole add(SystemRole role) {
        return service.save(role);
    }
}
